package ch7.ex17;

import static ch7.print.Print.*;
import ch7.ex1.Cycle;
import ch7.ex1.Tricycle;
import ch7.ex1.*;


public class DownCast {
	public static void main(String... args){
		Cycle[] c = new Cycle[]{new Unicycle(),
				new Bicycle(), new Tricycle()
		};
		//c[0].balance();
		//c[1].balance();
		//c[2].balance();
		((Unicycle)c[0]).balance();
		((Unicycle)c[1]).balance();
		((Unicycle)c[2]).balance();
	}
}